import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_09_game/config/app_color.dart';
import 'package:flutter_09_game/widgets/verify_input_box/src/verification_box.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class WidgetVerificationBox extends StatelessWidget {
  const WidgetVerificationBox({super.key, this.onValueChanged,this.verificationBoxController});

  final Function(String)? onValueChanged;
  final VerificationBoxController? verificationBoxController;
  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 50.w,
      child: VerificationBox(
        verificationBoxController: verificationBoxController,
        itemWidget: 50.w,
        borderRadius: 14.w,
        borderColor: AppColor.textPrimary.withOpacity(0.15),
        borderWidth: 1.w,
        autoFocus: false,
        obscureText: false,
        showCursor: true,
        focusBorderColor: AppColor.primary,
        backgroundColor: Colors.black.withOpacity(0.3),
        hintTextStyle: TextStyle(
            color: AppColor.textPrimary.withOpacity(0.3),
            fontWeight: FontWeight.w600,
            fontSize: 16.sp),
        textStyle: TextStyle(
            color: AppColor.textPrimary.withOpacity(0.94),
            fontWeight: FontWeight.w600,
            fontSize: 16.sp),
        onValueChanged: onValueChanged,
      ),
    );
  }
}
